package cn.woniu.ecommerceplatform.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 客户端二级菜单
 * @TableName menu4
 */
@TableName(value ="menu4")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Menu4 implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 名字
     */
    @TableField(value = "name")
    private String name;

    /**
     * 菜单1外键
     */
    @TableField(value = "menu3_id")
    private Long menu3Id;
    @TableField(value = "menu4_index")
    private String index;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}